/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package elsimulatorjava;

import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/**
 *
 * @author jc169327
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            /* QApplication.initialize(args);
                     
             Application application = new Application();
             
             application.setFixedSize(800, 600);
             /*
             Building b = new Building();
             ArrayList<Boolean> a = new ArrayList<Boolean>();
             
             for (int i = 0; i < 11; i++){
                 a.add(Boolean.TRUE.booleanValue());
             }
             b.createElevator(0, 5, a);
             b.start();
             
             application.show();

             QApplication.exec();*/
             UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
        Application a = new Application();
       /* Floor[] floors = new Floor[10];
        for (int i=0; i < 10; i++){
            floors[i] = new Floor("Floor " + i);
        }
        ArrayList<Boolean> fl = new ArrayList<Boolean>();
        for (int i = 0; i < 9; i++){
                    fl.add(true);
                }
        Elevator[] elevators = new Elevator[2];
        for (int i=0; i < 2; i++){
            elevators[i] = new Elevator((short)0, (short)9, (short)0, fl, (byte)20);
        }
        Building b = new Building(elevators,floors);
        b.createPerson(3, 5);
        b.createPerson(5, 2);
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.createRandomPerson();
        b.run();*/
        
        
        //a.setVisible(true);

    }

}
